import Vue from 'vue'
import App from './App.vue'
import router from './router';
import api from './api';
import './components';
import utils from './utils';
import moment from 'moment';
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI)
Vue.prototype.$moment = moment
Vue.prototype.$api = api
Vue.prototype.$utils = utils
Vue.config.productionTip = false
Vue.use(Viewer)
Viewer.setDefaults({
  url: 'data-source',
  toolbar: true
})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
